c program to count number of characters in a text file